﻿@page "/User/Login"
@layout EmptyLayout
<div class="login-NavLogin">
    <div style="padding:30px">
        <Card Bordered="true" Title=@("用户登录") Style="width:400px" Hoverable="true">
            <Body>
                <Form Model="@SysLoginUserData" OnFinish="SubmitLogin">
                    <FormItem>
                        <AntDesign.Input Placeholder="请输入用户名" Size="large" @bind-Value="@context.UserName">
                            <Prefix><Icon Type="user" /></Prefix>
                        </AntDesign.Input>
                    </FormItem>
                    <FormItem>
                        <AntDesign.Input Placeholder="请输入密码" Size="large" @bind-Value="@context.Password" Type="password">
                            <Prefix><Icon Type="lock" /></Prefix>
                        </AntDesign.Input>
                    </FormItem>
                    <Space Direction="vertical" Style="width:100%">
                        <SpaceItem>
                            <Button Type="primary" HtmlType="submit" Class="submit" Size="large" Block>登&nbsp;录</Button>
                        </SpaceItem>
                        <SpaceItem>
                            <div class="other">
                                <a class="register" href="#">注册账户</a>
                                <a style="float: right;">
                                    忘记密码
                                </a>
                            </div>
                        </SpaceItem>
                    </Space>
                </Form>
            </Body>
        </Card>
    </div>
</div>


